﻿using System;
using DocumentFormat.OpenXml.Spreadsheet;

namespace OOXMLGenerator.Generator.Excel
{
    internal class ExcelFormat
    {
        public bool ApplyFont { get; set; }
        public string Font { get; set; }
        public double FontSize { get; set; }
        public string FontColor { get; set; }
        public bool FontBold { get; set; }
        public bool ApplyBackground { get; set; }
        public string BackgroundColor { get; set; }
        public bool ApplyAlignment { get; set; }
        public HorizontalAlignmentValues HorizAlignment { get; set; }
        public bool AlignmentWrapText { get; set; }
        public bool MergeCells { get; set; }
        public string MergeCellReference { get; set; }
        public bool ApplyRowHeight { get; set; }
        public double RowHeight { get; set; }
        public bool ApplyColumnWidth { get; set; }
        public double ColumnWidth { get; set; }

        public ExcelFormat()
        {
            ApplyFont = false;
            ApplyBackground = false;
            ApplyAlignment = false;
            MergeCells = false;
            ApplyRowHeight = false;
            ApplyColumnWidth = false;
            FontBold = false;
        }
        public ExcelFormat(ExcelFormat copy)
        {
            ApplyFont = copy.ApplyFont;
            Font = copy.Font;
            FontSize = copy.FontSize;
            FontColor = copy.FontColor;
            FontBold = copy.FontBold;
            ApplyBackground = copy.ApplyBackground;
            BackgroundColor = copy.BackgroundColor;
            ApplyAlignment = copy.ApplyAlignment;
            HorizAlignment = copy.HorizAlignment;
            AlignmentWrapText = copy.AlignmentWrapText;
            MergeCells = copy.MergeCells;
            MergeCellReference = copy.MergeCellReference;
            ApplyRowHeight = copy.ApplyRowHeight;
            RowHeight = copy.RowHeight;
            ApplyColumnWidth = copy.ApplyColumnWidth;
            ColumnWidth = copy.ColumnWidth;
        }
    }
}
